{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}/Users/nj4353/Dropbox/Guillermo and Nate Research Project/CanadaSurvey/R&P Canada Log.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}21 Feb 2018, 14:12:34

{com}. do "/var/folders/wg/2nf5dd1x4rsfhz_95yv82clsjw_nrn/T//SD01009.000000"
{txt}
{com}. svyset SurveyID [pweight= weight], vce(linearized) singleunit(missing)

      {txt}pweight:{col 16}{res}weight
          {txt}VCE:{col 16}{res}linearized
  {txt}Single unit:{col 16}{res}missing
     {txt}Strata 1:{col 16}<one>
         SU 1:{col 16}{res}SurveyID
        {txt}FPC 1:{col 16}<zero>
{p2colreset}{...}

{com}. 
{txt}end of do-file

{com}. do "/var/folders/wg/2nf5dd1x4rsfhz_95yv82clsjw_nrn/T//SD01009.000000"
{txt}
{com}. 
. /* Panel 6 */
. svy: tab polresp treatment, col ci level(90)
{txt}(running tabulate on estimation sample)
{res}
{txt}{col 1}Number of strata{col 20}= {res}        1{txt}{col 49}Number of obs{col 67}= {res}     2,185
{txt}{col 1}Number of PSUs{col 20}= {res}    2,185{txt}{col 49}Population size{col 67}={res}      2,185
{txt}{col 49}Design df{col 67}= {res}     2,184

{txt}{hline 10}{c TT}{hline 74}
          {c |}                                 treatment                                
  polresp {c |}             1              2              3              4          Total
{hline 10}{c +}{hline 74}
        0 {c |}         {res}.8382          .6904          .8325          .6979          .7645
          {txt}{c |} {res}[.8075,.8649]  [.6553,.7235]  [.8017,.8593]   [.662,.7316]   [.748,.7802]
          {txt}{c |} 
        1 {c |}         {res}.1618          .3096          .1675          .3021          .2355
          {txt}{c |} {res}[.1351,.1925]  [.2765,.3447]  [.1407,.1983]   [.2684,.338]   [.2198,.252]
          {txt}{c |} 
    Total {c |}             {res}1              1              1              1              1
          {txt}{c |}              {res}                                                            
{txt}{hline 10}{c BT}{hline 74}
  Key:  {col 1}{res}column proportion
{col 9}[90% confidence interval for column proportion]

{txt}  Pearson:
{col 5}Uncorrected{col 19}chi2({res}3{txt}){col 35}= {res}  60.6489
{txt}{col 5}Design-based{col 19}F({res}3.00{txt}, {res}6547.89{txt}){col 35}= {res}  17.2383{col 51}{txt}P = {res}0.0000
{txt}
{com}. 
. /* Panel 7 */
. svy: tab globeresp treatment, col ci level(90)
{txt}(running tabulate on estimation sample)
{res}
{txt}{col 1}Number of strata{col 20}= {res}        1{txt}{col 49}Number of obs{col 67}= {res}     2,185
{txt}{col 1}Number of PSUs{col 20}= {res}    2,185{txt}{col 49}Population size{col 67}={res}      2,185
{txt}{col 49}Design df{col 67}= {res}     2,184

{txt}{hline 10}{c TT}{hline 74}
          {c |}                                 treatment                                
globeresp {c |}             1              2              3              4          Total
{hline 10}{c +}{hline 74}
        0 {c |}         {res}.5832          .5509          .5986           .577          .5773
          {txt}{c |} {res}[.5458,.6197]  [.5141,.5872]  [.5616,.6344]  [.5396,.6135]  [.5588,.5955]
          {txt}{c |} 
        1 {c |}         {res}.4168          .4491          .4014           .423          .4227
          {txt}{c |} {res}[.3803,.4542]  [.4128,.4859]  [.3656,.4384]  [.3865,.4604]  [.4045,.4412]
          {txt}{c |} 
    Total {c |}             {res}1              1              1              1              1
          {txt}{c |}              {res}                                                            
{txt}{hline 10}{c BT}{hline 74}
  Key:  {col 1}{res}column proportion
{col 9}[90% confidence interval for column proportion]

{txt}  Pearson:
{col 5}Uncorrected{col 19}chi2({res}3{txt}){col 35}= {res}   2.7119
{txt}{col 5}Design-based{col 19}F({res}3.00{txt}, {res}6551.58{txt}){col 35}= {res}   0.8077{col 51}{txt}P = {res}0.4894
{txt}
{com}. 
{txt}end of do-file

{com}. clear

. use "/Users/nj4353/Dropbox/Guillermo and Nate Research Project/CanadaSurvey/R&P Canada Data.dta"

. do "/var/folders/wg/2nf5dd1x4rsfhz_95yv82clsjw_nrn/T//SD01009.000000"
{txt}
{com}. svyset SurveyID [pweight= weight], vce(linearized) singleunit(missing)

      {txt}pweight:{col 16}{res}weight
          {txt}VCE:{col 16}{res}linearized
  {txt}Single unit:{col 16}{res}missing
     {txt}Strata 1:{col 16}<one>
         SU 1:{col 16}{res}SurveyID
        {txt}FPC 1:{col 16}<zero>
{p2colreset}{...}

{com}. 
{txt}end of do-file

{com}. do "/var/folders/wg/2nf5dd1x4rsfhz_95yv82clsjw_nrn/T//SD01009.000000"
{txt}
{com}. 
. /* Panel 3 */
. svy: tab polresp treatment, col ci level(90)
{txt}(running tabulate on estimation sample)
{res}
{txt}{col 1}Number of strata{col 20}= {res}        1{txt}{col 49}Number of obs{col 67}= {res}     2,185
{txt}{col 1}Number of PSUs{col 20}= {res}    2,185{txt}{col 49}Population size{col 67}={res}      2,185
{txt}{col 49}Design df{col 67}= {res}     2,184

{txt}{hline 10}{c TT}{hline 74}
          {c |}                                 treatment                                
  polresp {c |}             1              2              3              4          Total
{hline 10}{c +}{hline 74}
        0 {c |}         {res}.8382          .6904          .8325          .6979          .7645
          {txt}{c |} {res}[.8075,.8649]  [.6553,.7235]  [.8017,.8593]   [.662,.7316]   [.748,.7802]
          {txt}{c |} 
        1 {c |}         {res}.1618          .3096          .1675          .3021          .2355
          {txt}{c |} {res}[.1351,.1925]  [.2765,.3447]  [.1407,.1983]   [.2684,.338]   [.2198,.252]
          {txt}{c |} 
    Total {c |}             {res}1              1              1              1              1
          {txt}{c |}              {res}                                                            
{txt}{hline 10}{c BT}{hline 74}
  Key:  {col 1}{res}column proportion
{col 9}[90% confidence interval for column proportion]

{txt}  Pearson:
{col 5}Uncorrected{col 19}chi2({res}3{txt}){col 35}= {res}  60.6489
{txt}{col 5}Design-based{col 19}F({res}3.00{txt}, {res}6547.89{txt}){col 35}= {res}  17.2383{col 51}{txt}P = {res}0.0000
{txt}
{com}. 
. /* Panel 4 */
. svy: tab globeresp treatment, col ci level(90)
{txt}(running tabulate on estimation sample)
{res}
{txt}{col 1}Number of strata{col 20}= {res}        1{txt}{col 49}Number of obs{col 67}= {res}     2,185
{txt}{col 1}Number of PSUs{col 20}= {res}    2,185{txt}{col 49}Population size{col 67}={res}      2,185
{txt}{col 49}Design df{col 67}= {res}     2,184

{txt}{hline 10}{c TT}{hline 74}
          {c |}                                 treatment                                
globeresp {c |}             1              2              3              4          Total
{hline 10}{c +}{hline 74}
        0 {c |}         {res}.5832          .5509          .5986           .577          .5773
          {txt}{c |} {res}[.5458,.6197]  [.5141,.5872]  [.5616,.6344]  [.5396,.6135]  [.5588,.5955]
          {txt}{c |} 
        1 {c |}         {res}.4168          .4491          .4014           .423          .4227
          {txt}{c |} {res}[.3803,.4542]  [.4128,.4859]  [.3656,.4384]  [.3865,.4604]  [.4045,.4412]
          {txt}{c |} 
    Total {c |}             {res}1              1              1              1              1
          {txt}{c |}              {res}                                                            
{txt}{hline 10}{c BT}{hline 74}
  Key:  {col 1}{res}column proportion
{col 9}[90% confidence interval for column proportion]

{txt}  Pearson:
{col 5}Uncorrected{col 19}chi2({res}3{txt}){col 35}= {res}   2.7119
{txt}{col 5}Design-based{col 19}F({res}3.00{txt}, {res}6551.58{txt}){col 35}= {res}   0.8077{col 51}{txt}P = {res}0.4894
{txt}
{com}. 
{txt}end of do-file

{com}.  clear

. clear

. use "/Users/nj4353/Dropbox/Guillermo and Nate Research Project/CanadaSurvey/R&P US TAPS 2015.dta"

. do "/var/folders/wg/2nf5dd1x4rsfhz_95yv82clsjw_nrn/T//SD01009.000000"
{txt}
{com}. svyset wustlid [pweight= mar2015wt1], vce(linearized) singleunit(missing)

      {txt}pweight:{col 16}{res}mar2015wt1
          {txt}VCE:{col 16}{res}linearized
  {txt}Single unit:{col 16}{res}missing
     {txt}Strata 1:{col 16}<one>
         SU 1:{col 16}{res}wustlid
        {txt}FPC 1:{col 16}<zero>
{p2colreset}{...}

{com}. 
{txt}end of do-file

{com}. do "/var/folders/wg/2nf5dd1x4rsfhz_95yv82clsjw_nrn/T//SD01009.000000"
{txt}
{com}. svy: tab polresp xgroupab, col ci level(95)
{err}variable {bf}polresp{sf} not found
{txt}{search r(111), local:r(111);}

end of do-file

{search r(111), local:r(111);}

{com}. do "/var/folders/wg/2nf5dd1x4rsfhz_95yv82clsjw_nrn/T//SD01009.000000"
{txt}
{com}. /* Generating coding for first question. Dummy for politicians responsible and dummy for global markets */
. gen polresp=0 if xgroupab~=.
{txt}(1,313 missing values generated)

{com}. replace polresp=1 if ROSAS11S40==2 | ROSAS21S40==2 | ROSAS31S40==2 | ROSAS41S40==2
{txt}(367 real changes made)

{com}. replace polresp=. if ROSAS11S40==-1 | ROSAS21S40==-1 | ROSAS31S40==-1 | ROSAS41S40==-1
{txt}(14 real changes made, 14 to missing)

{com}. 
{txt}end of do-file

{com}. do "/var/folders/wg/2nf5dd1x4rsfhz_95yv82clsjw_nrn/T//SD01009.000000"
{txt}
{com}. svy: tab polresp xgroupab, col ci level(95)
{txt}(running tabulate on estimation sample)
{res}
{txt}{col 1}Number of strata{col 20}= {res}        1{txt}{col 49}Number of obs{col 67}= {res}     1,459
{txt}{col 1}Number of PSUs{col 20}= {res}    1,459{txt}{col 49}Population size{col 67}={res}   1,460.99
{txt}{col 49}Design df{col 67}= {res}     1,458

{txt}{hline 10}{c TT}{hline 69}
          {c |}                        XGROUPAB Randomization                       
  polresp {c |}            1             2             3             4         Total
{hline 10}{c +}{hline 69}
        0 {c |}        {res}.8847         .5942         .8868         .6052         .7423
          {txt}{c |} {res}[.7986,.937]  [.512,.6715]  [.8384,.922]  [.519,.6853]  [.704,.7772]
          {txt}{c |} 
        1 {c |}        {res}.1153         .4058         .1132         .3948         .2577
          {txt}{c |} {res}[.063,.2014]  [.3285,.488]  [.078,.1616]  [.3147,.481]  [.2228,.296]
          {txt}{c |} 
    Total {c |}            {res}1             1             1             1             1
          {txt}{c |}             {res}                                                        
{txt}{hline 10}{c BT}{hline 69}
  Key:  {col 1}{res}column proportion
{col 9}[95% confidence interval for column proportion]

{txt}  Pearson:
{col 5}Uncorrected{col 19}chi2({res}3{txt}){col 35}= {res} 156.2798
{txt}{col 5}Design-based{col 19}F({res}2.72{txt}, {res}3970.16{txt}){col 35}= {res}  18.5716{col 51}{txt}P = {res}0.0000
{txt}
{com}. )
{bf}{err}){sf} is not a valid command name
{txt}{search r(199), local:r(199);}

end of do-file

{search r(199), local:r(199);}

{com}. do "/var/folders/wg/2nf5dd1x4rsfhz_95yv82clsjw_nrn/T//SD01009.000000"
{txt}
{com}. svy: tab globeresp xgroupab, col ci level(95)
{err}variable {bf}globeresp{sf} not found
{txt}{search r(111), local:r(111);}

end of do-file

{search r(111), local:r(111);}

{com}. do "/var/folders/wg/2nf5dd1x4rsfhz_95yv82clsjw_nrn/T//SD01009.000000"
{txt}
{com}. gen globeresp=0 if xgroupab~=.
{txt}(1,313 missing values generated)

{com}. replace globeresp=1 if ROSAS11S40==3 | ROSAS21S40==3 | ROSAS31S40==3 | ROSAS41S40==3
{txt}(393 real changes made)

{com}. replace globeresp=. if ROSAS11S40==-1 | ROSAS21S40==-1 | ROSAS31S40==-1 | ROSAS41S40==-1
{txt}(14 real changes made, 14 to missing)

{com}. 
{txt}end of do-file

{com}. do "/var/folders/wg/2nf5dd1x4rsfhz_95yv82clsjw_nrn/T//SD01009.000000"
{txt}
{com}. svy: tab globeresp xgroupab, col ci level(95)
{txt}(running tabulate on estimation sample)
{res}
{txt}{col 1}Number of strata{col 20}= {res}        1{txt}{col 49}Number of obs{col 67}= {res}     1,459
{txt}{col 1}Number of PSUs{col 20}= {res}    1,459{txt}{col 49}Population size{col 67}={res}   1,460.99
{txt}{col 49}Design df{col 67}= {res}     1,458

{txt}{hline 10}{c TT}{hline 74}
          {c |}                          XGROUPAB Randomization                          
globeresp {c |}             1              2              3              4          Total
{hline 10}{c +}{hline 74}
        0 {c |}         {res}.7201          .7733           .738           .786          .7543
          {txt}{c |}  {res}[.6404,.788]  [.7034,.8308]  [.6687,.7972]  [.7089,.8471]  [.7188,.7867]
          {txt}{c |} 
        1 {c |}         {res}.2799          .2267           .262           .214          .2457
          {txt}{c |}  {res}[.212,.3596]  [.1692,.2966]  [.2028,.3313]  [.1529,.2911]  [.2133,.2812]
          {txt}{c |} 
    Total {c |}             {res}1              1              1              1              1
          {txt}{c |}              {res}                                                            
{txt}{hline 10}{c BT}{hline 74}
  Key:  {col 1}{res}column proportion
{col 9}[95% confidence interval for column proportion]

{txt}  Pearson:
{col 5}Uncorrected{col 19}chi2({res}3{txt}){col 35}= {res}   5.4793
{txt}{col 5}Design-based{col 19}F({res}2.98{txt}, {res}4344.70{txt}){col 35}= {res}   0.7686{col 51}{txt}P = {res}0.5107
{txt}
{com}. 
{txt}end of do-file

{com}. clear

. use "/Users/nj4353/Dropbox/Guillermo and Nate Research Project/CanadaSurvey/R&P US TAPS 2015.dta"

. save "/Users/nj4353/Dropbox/Guillermo and Nate Research Project/TAPSsurvey/R&P US TAPS 2015.dta"
{txt}file /Users/nj4353/Dropbox/Guillermo and Nate Research Project/TAPSsurvey/R&P US TAPS 2015.dta saved

{com}. save "/Users/nj4353/Dropbox/Guillermo and Nate Research Project/TAPSsurvey/R&P US TAPS 2015.dta", replace
{txt}file /Users/nj4353/Dropbox/Guillermo and Nate Research Project/TAPSsurvey/R&P US TAPS 2015.dta saved

{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}/Users/nj4353/Dropbox/Guillermo and Nate Research Project/CanadaSurvey/R&P Canada Log.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}21 Feb 2018, 14:22:31
{txt}{.-}
{smcl}
{txt}{sf}{ul off}